package com.itplh;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: tanpeng
 * @Date: 2019-08-17 23:27
 * @Version: V1.0
 */
@RestController
public class MyController {

    @Autowired
    private MyService myService;

    @GetMapping(value = "/")
    public String entry() {
        return myService.info();
    }

    @GetMapping(value = "/v")
    public String version() {
        return myService.version();
    }
}
